<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?></title>

<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<link media="all" href="<?php echo base_url(); ?>includes/css/stylesheet.css" rel="stylesheet" type="text/css" />
<link media="only screen and (max-device-width: 768px)" href="<?php echo base_url(); ?>includes/css/ipad-stylesheet.css" rel="stylesheet" type="text/css" /> 

<script src="<?php echo base_url(); ?>includes/js/jquery/jquery-1.6.2.min.js" type="text/javascript"></script>

<script type="text/javascript" src="<?php echo base_url(); ?>includes/js/jquery/ui/jquery-ui-1.8.9.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>includes/js/jquery/ui/themes/ui-lightness/jquery-ui-1.8.9.custom.css" />
<script type="text/javascript" src="<?php echo base_url(); ?>includes/js/jquery/ui/external/jquery.bgiframe-2.1.2.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>includes/js/jquery/tabs.js"></script>

<script type="text/javascript" src="<?php echo base_url(); ?>includes/js/jquery/superfish/js/superfish.js"></script>





<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>
</head>

<body>
<!-- Header -->
<div id="header">
	<div class="container content">
		<h1><a href="<?php echo base_url();?>" title="Back to home">Titanium</a></h1>

		<a href="http://www.mycarats.com/index.php/" target="_blank" class="viewWebsite"><span>訪問網站</span></a>
		<div class="loginInfos"> <strong><?php echo $logged; ?></strong>. <a href="<?php echo $logout ?>" title="Log out">退出登錄</a> </div>
	</div>
</div>
<!-- Header -->
<!-- AdminMenu -->
<div class="nav">
	<ul class="adminmenu">
		<li class="top-li"><a class="top-a adminmenuLeftSpace" href="<?php echo $home; ?>"><?php echo $text_dashboard; ?></a></li>
        <li class="top-li has-sub"><a class="top-a" href="index.html"><span><?php echo $text_system; ?></span><b></b><!--[if gte IE 7]><!--></a><!--<![endif]-->
                <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <ul class="sub">
                        <li class="sub">
                            <h5><?php echo $text_users; ?></h5>
                            <ul>
                                <li><a href="<?php echo $user_group; ?>"><?php echo $text_user_group; ?></a></li>
                                <li><a href="<?php echo $user; ?>"><?php echo $text_users; ?></a></li>
                            </ul>
                        </li>
                        <li class="bottomLine">
                            <p>&nbsp;</p>
                        </li>
                    </ul>
                <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        <li class="top-li has-sub"><a class="top-a" href="index.html"><span><?php echo $text_category; ?></span><b></b><!--[if gte IE 7]><!--></a><!--<![endif]-->
                <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <ul class="sub">
                        <li class="sub">
                            <h5><?php echo $text_users; ?></h5>
                            <ul>
                                <li><a href="<?php echo $category; ?>"><?php echo $text_category; ?></a></li>
                            </ul>
                        </li>
                        <li class="bottomLine">
                            <p>&nbsp;</p>
                        </li>
                    </ul>
                <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>

	</ul>
</div>
<!-- /AdminMenu -->

<div id="content">